package com.example.myhelloworld.client;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ButtonBase;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.Panel;

public abstract class ExerciseClass {
	ButtonBase closeButton;
	String userName;
	GreetingServiceAsync gsa;
	Panel selfPanel;
	Button produceResultButton = new Button();
	
	public ExerciseClass(String uName, String settings, GreetingServiceAsync GSA){
		gsa = GSA;
		userName = uName; 
	}
	/**
	 * s
	 */
	public abstract void draw();
	
	/**
	 * Corrects answers and pushes reults to the Google app-engine database.
	 */
	
	public abstract String pushresult();
	


	public Panel getSelfPanel() {
		return selfPanel;
	}
	public void setSelfPanel(Panel selfPanel) {
		this.selfPanel = selfPanel;
	}

	public Button getProduceResultButton() {
		return produceResultButton;
	}
	public void setProduceResultButton(Button produceResult) {
		this.produceResultButton = produceResult;
	}
}